Svg = function(options){
	var _options = {};
	$.extend(_options,this._options,options);
	$.extend(this,{
		_options:_options
	});
	this._init();
};
Svg.prototype = {
	_options:{
		width:"auto",
		height:"auto"
	},
	_svg:null,
	_defs:null,
	_xmlns:"http://www.w3.org/2000/svg",
	_namespace:"http://www.w3.org/2000/xmlns/",
	_xlink:"xmlns:xlink",
	_xlinkns:"http://www.w3.org/1999/xlink",
	_version:"1.1",
	_init:function(){
		this._svg = document.createElementNS(this._xmlns,"svg");
		this._svg.setAttribute("version",this._version);
		this._svg.setAttributeNS(this._namespace,this._xlink,this._xlinkns); 
		this._svg.style.position = "absolute";
		this._svg.style.top = Utils.pixel.style(0);
		this._svg.style.left = Utils.pixel.style(0);
		this._svg.style.width = Utils.pixel.style(this._options.width);
		this._svg.style.height = Utils.pixel.style(this._options.height);
		
		this._defs = document.createElement("defs");
		this._svg.appendChild(this._defs);
	},
	dom:function(){
		return this._svg;
	},
	addFilter:function(filter){
		this._defs.appendChild(filter);
	},
	addElement:function(graph){
		this._svg.appendChild(graph);
	}
};